package com.library.controller;


import com.library.common.base.ApiResult;
import com.library.entity.CollectEntity;
import com.library.entity.dto.BookCommentInfoDto;
import com.library.service.BookCommentInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * book评论
 前端控制器
 * </p>
 *
 * @author ccl
 * @since 2024-10-20
 */
@RestController
@RequestMapping("api/book-comment-info")
@Api(tags = "资源扩展(推荐、一般、不行更新)接口", value = "资源扩展(推荐、一般、不行更新)接口")
public class BookCommentInfoController {

   @Resource
   private BookCommentInfoService bookCommentInfoService;

    @ApiOperation(value = "资源推荐、一般、不行更新")
    @PostMapping("update")
    public ApiResult edit(@RequestBody BookCommentInfoDto dto) {
        return ApiResult.ok(bookCommentInfoService.edit(dto));
    }
}

